{$CLEO .cs}
0000:
27@ = marker.CreateIconAndSphere(37, 2491.2048, -1699.8063, 1014.7442 )
28@ = marker.CreateIconAndSphere(56, -4801.811, 2410.7268, 97.4359 )


model.Load(#AK47) 
model.Load(#CHROMEGUN) 
model.Load(#MP5LNG) 
model.Load(#SNIPER) 
model.Load(#DESERT_EAGLE) 
model.Load(#SHOTGSPA) 
model.Load(#M4) 
model.Load(#MINIGUN) 
model.Load(#CUNTGUN) 
model.Load(#HEATSEEK) 
model.Load(#ROCKETLA) 
model.Load(#MICRO_UZI) 
model.Load(#COLT45) 
038B: load_requested_models


const
AK47s = 0@
M4s = 1@
shotguns = 2@
SMGs = 3@
sniper_left = 4@
armour_taken1 = 5@
armour_taken2 = 6@
Eagle_taken = 7@ 
RPGs_taken = 8@
minigun_taken = 9@
sniper_left_v2 = 10@ 
end 

AK47s = 400
M4s = 600
shotguns = 400
SMGs = 350
sniper_left = 135
armour_taken1 = 2800
armour_taken2 = 1600
Eagle_taken = 260 
RPGs_taken = 35
minigun_taken = 5000
sniper_left_v2 = 175


while true 
wait 0
    if 0101:   actor $PLAYER_ACTOR in_sphere  -4801.811 2410.7268 97.4359  radius 2.0 2.0 1.0 sphere 1 stopped
    then
             0860: link_actor $PLAYER_ACTOR to_interior 3
            select_interior 3
            actor.PutAt($PLAYER_ACTOR , 2496.386, -1708.7753, 1014.7422)    //real house
          0ACA: show_text_box "CARL'S DREAMHOUSE CREATED BY SKATEFILTER5"
    
            //reset
        AK47s = 400
        M4s = 600
        shotguns = 400
        SMGs = 350
        sniper_left = 135
        armour_taken1 = 2800
        armour_taken2 = 1600
        Eagle_taken = 260 
        RPGs_taken = 35
        minigun_taken = 5000
        sniper_left_v2 = 175            
            
    end
 
    if 0101:   actor $PLAYER_ACTOR in_sphere   2491.2048 -1699.8063 1014.7442 radius 2.0 2.0 1.0 sphere 1 stopped
    then
              0ACA: show_text_box "I GOT GONE LOST, SOMETHING LOOKED TOO SIMILAR, I THOUGHT IT WAS FLINT COUNTY BUT'S IT'S NOT."

            0860: link_actor $PLAYER_ACTOR to_interior 1
            select_interior 1
            actor.PutAt($PLAYER_ACTOR , -4359.2217, 260.9121, 230.8161)    //back area    
    end
    if 0101:   actor $PLAYER_ACTOR in_sphere  2495.3484 -1702.4132 1019.0425  radius 2.0 2.0 1.0 sphere 1 stopped
    then
             0860: link_actor $PLAYER_ACTOR to_interior 1
            select_interior 1
            actor.PutAt($PLAYER_ACTOR ,  -4806.0801, 2404.917, 97.4359)    //dream house
           0ACA: show_text_box "MY HOUSE LOOKS WAY DIFFERENT, IT'S BIGGER THEN MY OLD HOUSE, A MANSION."
            wait 3000
          0ACA: show_text_box "THERE'S GUNS DOWN THERE, WALK THERE AND PRESS ENTER TO FILL UP THE AMMO"
    
    end

  gosub @weapons          
            

end

end_thread


:weapons
if   
M4s > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere  -4789.2124 2418.2383 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  m4   ,1)
             M4s -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere  -4789.2124 2418.2383 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor, m4   ,1)
             M4s -= 1 
        end 
    end 

end 
if   
AK47s > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere   -4790.6162 2420.0366 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  ak47  ,1)
             AK47s -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere -4790.6162 2420.0366 97.4359     radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor, ak47   ,1)
             AK47s -= 1 
        end 
    end 

end 
if   
armour_taken1 > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere   -4788.9111 2419.9973 97.4359 radius 1.5 1.5 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
          0851: set_actor $PLAYER_ACTOR decrease_health_by -25 affect_armour 1
             armour_taken1 -= 25
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere   -4788.9111 2419.9973 97.4359 radius 1.5 1.5 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
          0851: set_actor $second_player_actor decrease_health_by -25 affect_armour 1
             armour_taken1 -= 25
        end 
    end 

end 
if   
armour_taken2 > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere  -4788.2051 2415.5198 97.4359 radius 2.5 2.5 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
          0851: set_actor $PLAYER_ACTOR decrease_health_by -15 affect_armour 1
             armour_taken2 -= 15
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere -4788.2051 2415.5198 97.4359 radius 2.5 2.5 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
          0851: set_actor $second_player_actor decrease_health_by -25 affect_armour 1
             armour_taken2 -= 15
        end 
    end 

end 
if   
sniper_left > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere   -4790.5005 2423.1121 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  SniperRifle  ,1)
             sniper_left -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere  -4790.5005 2423.1121 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor, SniperRifle   ,1)
             sniper_left -= 1 
        end 
    end 

end 

if   
shotguns > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere    -4787.4512 2424.5603 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  combatshotgun  ,1)
             shotguns -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere  -4787.4512 2424.5603 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor, combatshotgun   ,1)
             shotguns -= 1 
        end 
    end 

end 


if   
SMGs > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere  -4784.9966 2423.8835 97.4359  radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  mp5  ,1)
             SMGs -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere  -4784.9966 2423.8835 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor, mp5   ,1)
             SMGs -= 1 
        end 
    end 

end 

if   
minigun_taken > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere   -4786.9023 2418.1802 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  minigun  ,1)
             minigun_taken -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere  -4786.9023 2418.1802 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor,  minigun   ,1)
             minigun_taken -= 1 
        end 
    end 

end 


if   
sniper_left_v2 > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere  -4784.71 2419.5103 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  Rifle  ,1)
             sniper_left_v2 -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere  -4784.71 2419.5103 97.4359 radius 2.0 2.0 2.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor, Rifle   ,1)
             sniper_left_v2 -= 1 
        end 
    end 

end 


if   
Eagle_taken > 1
then
    if
    056D:   actor $PLAYER_ACTOR defined
    then
        if    and
        0101:   actor $PLAYER_ACTOR in_sphere   -4784.875 2425.6741 98.3861 radius 2.0 2.0 1.0 sphere 0 stopped
        00E1:   player 0 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($PLAYER_ACTOR,  DesertEagle  ,1)
             Eagle_taken -= 1 
        end 
    end 
    if
    056D:   actor $second_player_actor  defined
    then
        if    and
        0101:   actor $second_player_actor in_sphere -4784.875 2425.6741 98.3861   radius 2.0 2.0 1.0 sphere 0 stopped
        00E1:   player 1 pressed_key 15 //enter vehicle
        then
             actor.GiveWeaponAndAmmo($second_player_actor, DesertEagle   ,1)
             Eagle_taken -= 1 
        end 
    end 

end 
return 